home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1999 #2 / Amiga Plus CD - 1999 - No. 2.iso / System-Boost / Profi Tools / DiskSpeed / src / mks_list.h < prev    next >
C/C++ Source or Header  |  1998-07-30  |  4KB  |  99 lines

  1. /*
  2.  * MKSoft Development Amiga ToolKit V1.0
  3.  *
  4.  * Copyright (c) 1985,86,87,88,89,90,91 by MKSoft Development
  5.  *
  6.  *                          DiskSpeed v4.2
  7.  *                          ScsiSpeed v4.2
  8.  *                                by
  9.  *                           Michael Sinz
  10.  *
  11.  *            Copyright (c) 1989-1992 by MKSoft Development
  12.  *
  13.  *            MKSoft Development
  14.  *            163 Appledore Drive
  15.  *            Downingtown, PA 19335
  16.  *
  17.  * Yes, this is yet another disk speed testing program, but with a few
  18.  * differences.  It was designed to give the most accurate results of the
  19.  * true disk performance in the system.  For this reason many of
  20.  * DiskSpeed's results may look either lower or higher than current disk
  21.  * performance tests.
  22.  *
  23.  ******************************************************************************
  24.  *                                          *
  25.  *    Reading legal mush can turn your brain into guacamole!              *
  26.  *                                          *
  27.  *        So here is some of that legal mush:                  *
  28.  *                                          *
  29.  * Permission is hereby granted to distribute this program's source          *
  30.  * executable, and documentation for non-commercial purposes, so long as the  *
  31.  * copyright notices are not removed from the sources, executable or          *
  32.  * documentation.  This program may not be distributed for a profit without   *
  33.  * the express written consent of the author Michael Sinz.              *
  34.  *                                          *
  35.  * This program is not in the public domain.                      *
  36.  *                                          *
  37.  * Fred Fish is expressly granted permission to distribute this program's     *
  38.  * source and executable as part of the "Fred Fish freely redistributable     *
  39.  * Amiga software library."                              *
  40.  *                                          *
  41.  * Permission is expressly granted for this program and it's source to be     *
  42.  * distributed as part of the Amicus Amiga software disks, and the          *
  43.  * First Amiga User Group's Hot Mix disks.                      *
  44.  *                                          *
  45.  ******************************************************************************
  46.  */
  47.  
  48. #ifndef    MKS_MKS_LIST_H
  49. #define    MKS_MKS_LIST_H
  50.  
  51. #include    <exec/types.h>
  52. #include    <exec/lists.h>
  53. #include    <exec/nodes.h>
  54. #include    <graphics/text.h>
  55. #include    <intuition/intuition.h>
  56.  
  57. /*
  58.  * The DisplayList structure returned by InitListGadget
  59.  *
  60.  * This structure is fully managed by the ListGadget
  61.  * code.  These are the only structure elements that
  62.  * are visible and they are *READ ONLY*
  63.  */
  64. struct    DisplayList
  65. {
  66.     struct    Node    *Selected;    /* These are the only PUBLIC fields... */
  67. };
  68.  
  69. /*
  70.  * This routine deallocates the DisplayList allocated below...
  71.  * It does not do any unlinking...
  72.  */
  73. void FreeListGadget(struct DisplayList *);
  74.  
  75. /*
  76.  * This routine allocates and initializes a DisplayList gadget...
  77.  * It will link the gadgets into the gadget list given...
  78.  *
  79.  * Arguments:  TextAttr,**Gadget,TextPen,Highlight,Shadow,Left,Top,Width,Height
  80.  */
  81. struct DisplayList *InitListGadget(struct TextAttr *,struct Gadget **,UBYTE,UBYTE,UBYTE,SHORT,SHORT,SHORT,SHORT);
  82.  
  83. /*
  84.  * This routine will initialize a fresh list.  It clears Selected,
  85.  * sets TopNum to 0, counts the entries, and displays the list...
  86.  */
  87. void FreshList(struct Window *,struct DisplayList *,struct MinList *);
  88.  
  89. /*
  90.  * This is the InputEvent filter...
  91.  * Call this routine with each message.  If it returns a pointer to
  92.  * a DisplayList, a message was processed, if it returns NULL, nothing
  93.  * was done with the message and you may process it.
  94.  * The message is NOT ReplyMsg()ed...
  95.  */
  96. struct DisplayList *Check_ListGadget(struct Window *,struct IntuiMessage *);
  97.  
  98. #endif    /* MKS_MKS_LIST_H */
  99.